﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QLLoaiHang.aspx.cs" Inherits="Web.Shalo.BanPMS1.Admin.QLLoaiHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentAdmin" runat="server">
   
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .mGrid
    {}
    .style2
    {
        width: 141px;
    }
</style>
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Quản Lý Loại Hàng</h1>
	</div>
	<!-- end page-heading -->

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content">
			&nbsp;<asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="View1" runat="server">
                       
                        <table class="style1">
                            <tr>
                                <td><h2>Danh Sách Loại Hàng</h2>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="GVLoaiHang"  CssClass="mGrid" runat="server" AutoGenerateColumns="False" 
                                        Height="283px" Width="520px" AllowPaging="True" PageSize="6" 
                                        onpageindexchanging="GVLoaiHang_PageIndexChanging" 
                                        onselectedindexchanging="GVLoaiHang_SelectedIndexChanging" 
                                        onrowdeleting="GVLoaiHang_RowDeleting">
                                        <Columns>
                                            <asp:BoundField DataField="MaLH" HeaderText="Mã Loại Hàng" >
                                            <HeaderStyle Width="100px" />
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="TenLH" HeaderText="Tên Loại Hàng" >
                                            <ItemStyle HorizontalAlign="Justify" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="MoTa" HeaderText="Mô Tả" >
                                            <ItemStyle HorizontalAlign="Justify" />
                                            </asp:BoundField>
                                            <asp:ButtonField CommandName="Select" Text="Sửa" ControlStyle-CssClass="link">
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:ButtonField>
                                            <asp:ButtonField CommandName="Delete" Text="Xóa" ControlStyle-CssClass="link">
                                            <ItemStyle HorizontalAlign="Center" />
                                           
                                            </asp:ButtonField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td><h2>&nbsp;</h2>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnThemMoiLH" CssClass="btn" runat="server" Text="Thêm Mới Loại Hàng" onclick="btnThemMoiLH_Click" 
                                        />
                                     
                                </td>
                            </tr>
                        </table>
                       
                    </asp:View>
                    <br />
                    <asp:View ID="View2" runat="server">
                     
                        <table class="style1">
                            <tr>
                                <td colspan="2"><h2>Cập Nhật Loại Hàng</h2>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style2"><h3>&nbsp;</h3> 
                                    
                                        Tên Loại Hàng
                                    &nbsp;</td>
                                <td>
                                    <asp:TextBox ID="txtTenlh" runat="server" Height="26px" 
                                        Width="271px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        BorderColor="Red" Display="Dynamic" ErrorMessage="(*)" 
                                        ControlToValidate="txtTenlh" ForeColor="Red"></asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    
                                        Mô Tả
                                    &nbsp;</td>
                                <td>
                                    <asp:TextBox ID="txtMota" runat="server" CssClass="form-textarea" 
                                        TextMode="MultiLine"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    &nbsp;</td>
                                <td>
                                    <asp:Button ID="btnThemLH" CssClass="btn" runat="server" Text="Thêm Mới" 
                                        onclick="btnThemLH_Click" />
                                    <asp:Button ID="btnSuaLH" CssClass="btn" runat="server" Text="Lưu Lại" 
                                        onclick="btnSuaLH_Click" />
                                    <asp:Button ID="btnDSLH" runat="server" CausesValidation="False" CssClass="btn" 
                                        onclick="btnDSLH_Click" Text="Hủy" />
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                     
                    </asp:View>
                </asp:MultiView>
			
			
			</div>
			<!--  end table-content  -->
	
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
   
 
   
</asp:Content>
